﻿CREATE TABLE [dbo].[Booking](
	[BookingId] [int] IDENTITY(1,1) NOT NULL,
	[DriverId] [int] NULL,
	[CarId] [int] NULL,
	[CustomerId] [int] NOT NULL,
	[DriverRating] [bit] NULL,
	[CustomerRating] [bit] NULL,
	[PickupUnit] [nchar](10) NULL,
	[PickupStreetNumber] [nchar](10) NOT NULL,
	[PickupStreet] [nvarchar](50) NOT NULL,
	[PickupSuburb] [nvarchar](50) NOT NULL,
	[PickupStreetType] [nchar](10) NOT NULL,
	[NumberOfPassengers] [tinyint] NOT NULL,
	[IsProrityBooking] [bit] NOT NULL,
	[RequiresExtraLuggageSpace] [bit] NOT NULL,
	[RequiresSmallWheelchairSupport] [bit] NOT NULL,
	[RequiresMediumWheelchairSupport] [bit] NOT NULL,
	[RequiresLargeWheelchairSupport] [bit] NOT NULL,
	[CreateDateTime] [datetime] NULL,
	[Status] [nvarchar](20) NULL,
	[Latitude] [decimal](9, 6) NULL,
	[Longitude] [decimal](9, 6) NULL
 CONSTRAINT [PK_Booking] PRIMARY KEY CLUSTERED 
(
	[BookingId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]




